/*
 * @Author: your name
 * @Date: 2020-07-02 11:26:58
 * @LastEditTime: 2020-07-02 11:27:17
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \heima33\src\util\peizhi.js
 */
// 格式化配置
{
    "workbench.iconTheme": "vscode-great-icons",
        "editor.quickSuggestions": {
        //开启自动显示建议
        "other": true,
            "comments": true,
                "strings": true
    },
    // vscode默认启用了根据文件类型自动设置tabsize的选项
    "editor.detectIndentation": false,
        // 重新设定tabsize
        "editor.tabSize": 4,
            // #每次保存的时候自动格式化
            "editor.formatOnSave": true,
                // #每次保存的时候将代码按eslint格式进行修复
                "eslint.autoFixOnSave": true,
                    // 添加 vue 支持
                    "eslint.validate": [
                        "javascript",
                        "javascriptreact",
                        {
                            "language": "html",
                            "autoFix": true
                        },
                        {
                            "language": "vue",
                            "autoFix": true
                        }
                    ],
                        //  #让prettier使用eslint的代码格式进行校验
                        // "prettier.eslintIntegration": true,
                        //  #去掉代码结尾的分号
                        "prettier.semi": false,
                            //  #使用带引号替代双引号
                            "prettier.singleQuote": true,
                                //  #让函数(名)和后面的括号之间加个空格
                                "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
                                    "diffEditor.ignoreTrimWhitespace": false,
                                        "http.proxyAuthorization": null,
                                            "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
    },
    "[javascript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },

    "auto-rename-tag.activationOnLanguage": ["*"],
        "liveServer.settings.host": "192.168.1.177",
            "liveServer.settings.https": {
        "enable": true,
            "cert": "G:/dom/v-nw-h5/certificate.pem",
                "key": "G:/dom/v-nw-h5/privatekey.pem",
                    "passphrase": ""
    },
    "vetur.format.options.tabSize": 4,
        "vetur.dev.vlsPort": -122, //js格式化不自动换行
            "vetur.format.defaultFormatter.html": "js-beautify-html",
                "vetur.format.defaultFormatter.js": "vscode-typ=script",
                    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_line_length": 120,
                "wrap_attributes": "auto", //html格式化不自动换行
                    "end_with_newline": false
        },
        "prettyhtml": {
            "printWidth": 100,
                "singleQuote": false,
                    "wrapAttributes": false,
                        "sortAttributes": false
        }
    }
    //   "editor.codeActionsOnSave": null
    // 用来忽略搜索的文件夹
    //   "search.exclude": {
    //     "**/node_modules/**": true,
    //     "**/bower_components/**": true,
    //     "**/image/**": true,
    //     "**/*.xml": true,
    //     "**/.history/**": true,
    //     "**/nbproject/**": true,
    //     "**/vscode/**": true
    // },
}
